<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>图片放大案例</title>
  <style>
    div {
      float: left;
      margin: 10px;
      /* 隐藏溢出部分 */
      overflow: hidden;
    }

    div img {
      /* 谁做过渡给谁加 */
      vertical-align: middle;
      transition: all 0.5s;
    }

    div img:hover {
      transform: scale(1.2);
    }
  </style>
</head>

<body>

  <div><a href="#"><img src="images/ldh.jpg" alt=""></a></div>
  <div><a href="#"><img src="images/ldh.jpg" alt=""></a></div>
  <div><a href="#"><img src="images/ldh.jpg" alt=""></a></div>

</body>

</html>